package caiwei.android_study_sample.activity;

import caiwei.android_study_sample.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class Android10BroadcastReceiver extends Activity
{
	private TextView mTextView;
	private Button mButton;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.showcontent);
		mTextView = (TextView) findViewById(R.id.textViewcontent);
		mButton = (Button) findViewById(R.id.showcontent_button);
		mTextView.setText(R.string.android10_broadcastreceiver);
		mButton.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View v)
			{
				Toast.makeText(Android10BroadcastReceiver.this,
						R.string.showcontent01_button_show, Toast.LENGTH_LONG)
						.show();
			}
		});
	}
}
